import request from "@/utils/request";
// 接口渠道相关管理接口

let interfaceChannelApi = {
  // 获取所有渠道平台
  getAllList(params) {
    return request({
      url: "/interfaceChannel/list",
      method: "get",
      params,
    });
  },
  // 根据Id查询单个渠道信息
  getInfoById(id) {
    return request({
      url: `/interfaceChannel/${id}`,
      method: "get"
    });
  },

  // 接口开通数量统计 
  kaitongtongji(params) {
    return request({
      url: `/partner/partner/kaitongtongji`,
      method: "get",
      params
    });
  },
  // 接口上下架数量统计
  shangxiajiatongji(params) {
    return request({
      url: `/partner/partner/shangxiajiatongji`,
      method: "get",
      params
    });
  },

  // 渠道属性同步
  shangxiajiatongji(data) {
    return request({
      url: `/inter/autoMateGameProperty`,
      method: "post",
      data
    });
  },

 
};
export default interfaceChannelApi;
